<?php
include_once("./_common.php");

$sql = "SELECT *
		  FROM notice_record
		 order by reg_date DESC";
$rst = sql_query($sql);

while($row = mysql_fetch_assoc($rst))
{
	$list[] = $row;
}

$result = "";

for ($i=0; $i<count($list); $i+=1)
{
	$result .= $list[$i]['id']."<col>".$list[$i]['mb_id']."<col>".$list[$i]['ntc_title']."<col>".$list[$i]['ntc_content']."<col>".$list[$i]['reg_date']."<col>".$list[$i]['regr_nm']."<col>END"."<row>";
}

echo($result);

?>